set -eux

cd /install
tar -xvf distcc-3.4.tar.gz

cd  /install/distcc-3.4

# ubuntu  libiberty-dev == yum binutils-devel
# ubuntu python3-dev python3-setuptools == yum  python3-devel
# autoconf

./configure

time make  -j 
make install
update-distcc-symlinks 

ln -s  /usr/local/bin/distcc  /usr/local/lib/distcc
# 110 EXIT_COMPILER_MISSING
# https://github.com/distcc/distcc/blob/master/src/daemon.c
#  e = opendir("/usr/lib/distcc");
#     d = opendir(LIBDIR "/distcc");
#     if (!e && !d) {
#         rs_log_crit(LIBDIR "/distcc not found. %s", warn);
#         dcc_exit(EXIT_COMPILER_MISSING);
#     }

useradd distcc | echo 0

# source  ~/.bashrc


